package com.qiangqiang.resoldhouse.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.qiangqiang.resoldhouse.entity.Estate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: zqh
 * @date: 2018/8/9 15:46
 * @description:
 */
@Mapper
public interface EstateMapper extends BaseMapper<Estate> {

    //根据小区名字取得小区所在城市
    @Select("select * from estate where estate_name=#{estateName}")
    public Estate selectEstateByEstateName(@RequestParam("estateName") String estateName);
}
